package com.topica.object;

public class QuizLogItem {
	private int id;
	private int quiz_id;
	private int user_id;
	private String user_choice;
	private String start_time;
	private String end_time;
	private String mark;
	private float realMark;

	public QuizLogItem() {
	}

	public QuizLogItem(int id, int quiz_id, int user_id,
			String user_choice, String start_time, String end_time, String mark) {
		this.id = id;
		this.quiz_id = quiz_id;
		this.user_id = user_id;
		this.user_choice = user_choice;
		this.start_time = start_time;
		this.end_time = end_time;
		this.mark = mark;
	}

	public int getQuizId() {
		return quiz_id;
	}

	public String getEnd_time() {
		return end_time;
	}

	public String getMark() {
		return mark;
	}

	public int getId() {
		return id;
	}

	public String getStart_time() {
		return start_time;
	}

	public String getUser_choice() {
		return user_choice;
	}

	public int getUser_id() {
		return user_id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setQuizId(int quiz_id) {
		this.quiz_id = quiz_id;
	}

	public void setUser_id(int user_id) {
		this.user_id = user_id;
	}

	public void setUser_choice(String user_choice) {
		this.user_choice = user_choice;
	}

	public void setStart_time(String start_time) {
		this.start_time = start_time;
	}

	public void setEnd_time(String end_time) {
		this.end_time = end_time;
	}

	public void setMark(String mark) {
		this.mark = mark;
	}
	public void setRealMark(float realMark){
		this.realMark = realMark;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder(1024);
		builder.append(id).append(",").append(quiz_id).append(",")
				.append(user_id).append(",").append("\'").append(user_choice)
				.append("\'").append(",").append("\'").append(start_time)
				.append("\'").append(",").append("\'").append(end_time)
				.append("\'").append(",").append(realMark);
		return builder.toString();
	}
}
